using System;
using System.Collections.Generic;

namespace ERP.MasterData.Dtos
{
    /// <summary>
    /// 物料类型树DTO
    /// </summary>
    public class MaterialTypeTreeDto
    {
        /// <summary>
        /// ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 父级ID（0：物料，1：产品）
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 子节点
        /// </summary>
        public List<MaterialTypeTreeDto> Children { get; set; } = new List<MaterialTypeTreeDto>();
    }
} 